import { connect } from 'react-redux'

const Header = (props) => {
    const { userInfo } = props;

    return <div className="header-box">
        <div className="user-info">登录人：{userInfo.name}</div>
    </div>
}

const mapStateToProps = state => state

export default connect(mapStateToProps)(Header)